package com.life.ai.server.modules.system.model.vo;

import com.life.ai.server.modules.system.entity.SysMenu;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * SysMenuNodeVO
 *
 * @author kylewka
 * @since 2024/6/21
 */
@Getter
public class SysMenuNodeVO extends SysMenu {

    @Setter
    @ApiModelProperty(value = "子菜单列表")
    private List<SysMenuNodeVO> children;

    public String getLabel() {
        return this.getMenuName();
    }

    public Long getValue() {
        return this.getId();
    }

    public String getTitle() {
        return this.getMenuName();
    }

    public Long getKey() {
        return this.getId();
    }
}
